package com.example;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

/**
 * Created with IntelliJ IDEA.
 * User: Jasic_Work
 * Date: 12-8-22
 * Time: 下午5:59
 * To change this template use File | Settings | File Templates.
 */
public class ResultActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);    //To change body of overridden methods use File | Settings | File Templates.

        TextView textView = (TextView)findViewById(R.id.result);
        Intent intent = getIntent();

        Integer factor_01 = Integer.parseInt(intent.getStringExtra("factor_01"));
        Integer factor_02 = Integer.parseInt(intent.getStringExtra("factor_02"));

        textView.setText(factor_01 * factor_02);
    }
}
